// 用户通讯录 
UserContacts = new Mongo.Collection('user_contacts');
Meteor.methods({
  importUserContacts:function(contacts){
    checkLogin(this.userId);
    var user = Meteor.users.findOne(this.userId,{_id:0,'company_id':1});

    contacts.forEach(function(contact){
      contact.company_id = user.company_id;
      try {
        sid = UserContacts.insert(contact);
      } catch (e) {
        throw e;
      }
    });
    // return sid;
  }
});
